package com.xlh.dao.user.helper;

import com.xlh.dao.user.UserMapper;
import com.xlh.pojo.user.User;
import com.xlh.pojo.user.UserExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author cfz
 */
@Repository
public class UserMapperHelper {

    @Autowired
    private UserMapper userMapper;

    public List<User> findUserByIds(List<Long> userIds){

        UserExample example = new UserExample();
        example.createCriteria().andIdIn(userIds);
        List<User> users = userMapper.selectByExample(example);

        return users;
    }



}
